/**   
* @Title: UserFormBean.java 
* @Package com.csis.system.domain 
* @Description: TODO
* @author dailey  
* @date 2012-9-27
* @version V1.0   
*/
package com.csis.system.domain;

import com.csis.framework.domain.FormBean;

/**
 * @author dailey
 *
 */
public class UserFormBean extends FormBean<User> {
	private String userName;

	private String passWord;

	private String code;
	
	private String newPassWord;
	
	private String repeatPassWord;

	private User user;

	/**
	 * 
	 */
	public UserFormBean() {
		// TODO Auto-generated constructor stub
	}

	public UserFormBean(User user) {
		this.user = user;
		setUserName(user.getUserName());
		setPassWord(user.getUserPassword());
	}

	
	/**
	 * @return the newPassWord
	 */
	public String getNewPassWord() {
		return newPassWord;
	}
	
	/**
	 * @param newPassWord the newPassWord to set
	 */
	public void setNewPassWord(String newPassWord) {
		this.newPassWord = newPassWord;
	}
	
	/**
	 * @return the repeatPassWord
	 */
	public String getRepeatPassWord() {
		return repeatPassWord;
	}
	
	/**
	 * @param repeatPassWord the repeatPassWord to set
	 */
	public void setRepeatPassWord(String repeatPassWord) {
		this.repeatPassWord = repeatPassWord;
	}
	
	/**
	 * @return the user
	 */
	public User getUser() {
		return user;
	}

	/**
	 * @param user the user to set
	 */
	public void setUser(User user) {
		this.user = user;
	}

	/**
	 * @return the userName
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * @param userName the userName to set
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * @return the passWord
	 */
	public String getPassWord() {
		return passWord;
	}

	/**
	 * @param passWord the passWord to set
	 */
	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	/**
	 * @return the code
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @param code the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}
	
	
	public boolean validataNewPass(){
		if(newPassWord!=null && newPassWord.equals(repeatPassWord)){
			return true;
		}
		return false;
	}
}
